home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v9n03.arc / SETUPH2.BAT < prev    next >
DOS Batch File  |  1990-01-12  |  7KB  |  133 lines

  1. ECHO OFF
  2. ECHO ╔════════════════════════════════════════════════════════════╗
  3. ECHO ║ SETUP2 - Toolkit install for users who wish to check the   ║
  4. ECHO ║          parition sector on their 2nd physical hard disk.  ║
  5. ECHO ╟────────────────────────────────────────────────────────────╢
  6. ECHO ║PCDATA TOOLKIT 1.0 Copyright (C) 1990 Ziff Communication Co.║
  7. ECHO ║                 PC Magazine ■ Wolfgang Stiller             ║
  8. ECHO ╚════════════════════════════════════════════════════════════╝
  9. IF "%1"=="" goto help
  10. IF %1==? goto help
  11. CLS
  12. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  13. ECHO ║ This batch file is about to put PCDATA Toolkit files onto the           ║
  14. ECHO ║ RECOVERY diskette.  Use only if you boot from 2nd physical hard disk.   ║
  15. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  16. ECHO ║ You should be logged onto the drive from which you normally boot.       ║
  17. ECHO ║ The current directory must be the one containing the toolkit files.     ║
  18. ECHO ║ The RECOVERY diskette should be in drive %1.  If this is not the case,  ║
  19. ECHO ║ please hit CNTL/BREAK to terminate this batch file.                     ║
  20. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  21. PAUSE
  22. IF NOT EXIST CHKBOOT.COM GOTO BadDisk
  23. IF NOT EXIST CHKFILEC.COM GOTO BadDisk
  24. GOTO Start
  25. :Help
  26. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  27. ECHO ║ Syntax is:   SETUPH2 a:                                                 ║
  28. ECHO ║           where a: is the drive containing the RECOVERY diskette.       ║
  29. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  30. ECHO ║ SETupH2 will check the partition table on the 2nd physical hard disk and║
  31. ECHO ║ the boot sector on the current disk.  The reload files plus all needed  ║
  32. ECHO ║ toolkit files will be copied to the RECOVERY diskette.                  ║
  33. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  34. ECHO ║ Next SETupH2 will copy all needed files for the CHECK diskette.         ║
  35. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  36. GOTO End
  37. :BadDisk
  38. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  39. ECHO ║ This batch file MUST be executed from the directory containing the      ║
  40. ECHO ║ PCDATA Toolkit files.  One or more of these files is missing!           ║
  41. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  42. ECHO ║ Please check your current directory and disk and try again.             ║
  43. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  44. GOTO END
  45. :BadChk
  46. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  47. ECHO ║ An unrecoverable error has occurred executing CHKboot.  This is usually ║
  48. ECHO ║ due to disk problems such as no space or write protect.  Do you really  ║
  49. ECHO ║ have a second physical hard (fixed) disk?                               ║
  50. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  51. GOTO END
  52. :NoSYS
  53. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  54. ECHO ║ The CHECK diskette must have been formatted with a "FORMAT a:/S" so     ║
  55. ECHO ║ that a copy of the system is on it.  Please do a FORMAT and re-execute  ║
  56. ECHO ║ this batch file.                                                        ║
  57. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  58. GOTO END
  59. :Start
  60. CHKboot/I/2
  61. IF ERRORLEVEL 64 GOTO BADchk
  62. COPY SETUPSM2.CPY SCANMAX.BAT
  63. COPY CHKFILEC.COM %1
  64. COPY CFCOMPC.COM %1
  65. COPY CHKFILE.COM %1
  66. COPY CFCOMP.COM %1
  67. COPY CHKBOOT.COM %1
  68. COPY LODBOOT.COM %1
  69. COPY *.SCT %1
  70. COPY *.PRM %1
  71. COPY MIRDIR.COM %1
  72. COPY XALL.COM %1
  73. COPY SCAN*.BAT %1
  74. COPY FASTRUN.BAT %1
  75. COPY DSP*.BAT %1
  76. COPY RELODB.BAT %1
  77. DEL @@BOOT.SCT
  78. DEL @@PARTIT.SCT
  79. : Create special marker file so other batch files know about this one
  80. TYPE %1PCITKR.MRK >%1PCITKR.MRK
  81. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  82. ECHO ║ Your RECOVERY diskette has been built.  We are now checking the files   ║
  83. ECHO ║ written to it.  No files should be missing.  All toolkit files should   ║
  84. ECHO ║ match (This means all .COM and .BAT files).  If any files are deleted   ║
  85. ECHO ║ check that there is enough room on the diskette.  If any errors show up,║
  86. ECHO ║ please get a clean copy of the toolkit.                                 ║
  87. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  88. ECHO ║ Files: IBMBIO.COM, and IBMDOS.COM may have different names on some PCs. ║
  89. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  90. CHKfileC %1*.* ))INTRB.LOG/I:))
  91. CFcompC ))INTR2.LOG ))INTRB.LOG/P/O
  92. DEL ))INTRB.LOG
  93. ECHO  
  94. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  95. ECHO ║ We are now creating the CHECK diskette.  Please insert it in drive %1   ║
  96. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  97. PAUSE
  98. IF NOT EXIST %1COMMAND.COM GOTO NoSYS
  99. COPY CHKFILEC.COM %1
  100. COPY CFCOMPC.COM %1
  101. COPY CHKBOOT.COM %1
  102. COPY CHKBOOT.PRM %1
  103. COPY MIRDIR.COM %1
  104. COPY XALL.COM %1
  105. COPY SCANSYS.BAT %1
  106. COPY SCANDIR.BAT %1
  107. COPY CH*.BAT %1
  108. COPY DSP*.BAT %1
  109. COPY SCANRFDR.BAT %1
  110. COPY SCANMAX.BAT %1
  111. COPY FASTRUN.BAT %1
  112. COPY DELFILES.BAT %1
  113. COPY INIT*.BAT %1
  114. DEL *.PRM
  115. : Create special marker file so other batch files know about this one
  116. TYPE %1PCITKC.MRK >%1PCITKC.MRK
  117. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  118. ECHO ║ Your CHECK diskette has been built.  We are now checking the files      ║
  119. ECHO ║ written to it.  No files should be missing.  All toolkit files should   ║
  120. ECHO ║ match (This means all .COM and .BAT files).  If any files are deleted   ║
  121. ECHO ║ check that there is enough room on the diskette.  If any errors show up,║
  122. ECHO ║ please get a clean copy of the toolkit.                                 ║
  123. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  124. ECHO ║ Files: IBMBIO.COM, and IBMDOS.COM may have different names on some PCs. ║
  125. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  126. CHKfileC %1*.* ))INTCB.LOG/I:))
  127. CFcompC ))INTC2.LOG ))INTCB.LOG/P/O
  128. DEL ))INTCB.LOG
  129. ECHO ╔════════════════════╗
  130. ECHO ║ SETUP is complete! ║
  131. ECHO ╚════════════════════╝
  132. :End
  133.